package cqut.gbq.qimo.service;

import cqut.gbq.qimo.entity.Course;
import cqut.gbq.qimo.entity.ResBean;
import cqut.gbq.qimo.entity.Student;

import java.util.List;

/**
 * @ClassName StudentsService
 * @Description TODO
 * @Author guobenqi
 * @Date 2021/6/16 14:14
 */
public interface StudentsService {
    List<Student> findAllStudent();

    Student login(String username, String password);

    ResBean register(String username, String password, String school, String name,String uid);

    List<Course> getClassInfo(Integer sid);

    ResBean joinCourse(Integer sid, String code);

    ResBean dropCourse(Integer sid, Integer cid);

    ResBean getCourseCount(Integer cid);

    ResBean getStuInfo(Integer sid);

    ResBean editStuInfo(Student student);

    List<Student> getStudentByCid(Integer cid);

    Integer updateTop(Integer cid, Integer sid);

    Integer updateNoTop(Integer cid, Integer sid);

    List<Course> getCourseTop(Integer sid);

    List<Course> getOtherCourseTop(Integer sid);
}
